
/****** parameters ******/
static int TargetThreshold[] = 
{80,80,78,72,78,81,86,88,83,84,87,81,78,87,89,91,95,96,93,93,90,
 92,92,94,85,79,83,84,87,80,75,74,69,72,71,78,87,84,69,67,71,70,
 71,76,72,72,73,71,75,77,74,72,75,74,77,72,77,72,68,62,59,62,61,
 61,53,53,65,61,64,66,66,70};

static int SurroundThreshold[] = 
{21,21,21,21,22,24,25,26,24,25,24,24,23,23,23,23,22,22,21,21,23,
 24,23,25,25,24,25,24,24,24,24,24,23,23,22,22,24,22,23,23,23,23,
 22,24,23,21,22,21,21,21,20,20,21,20,21,20,22,22,22,21,21,22,21,
 21,19,19,20,19,19,19,19,19};

static float CombinedThreshold = 1.4;

static int TargetPixelCount[] = 
{133,132,129,120,129,135,142,146,138,139,144,135,130,145,148,151,
 158,160,154,154,150,152,152,156,141,131,137,139,145,132,124,123,
 114,119,117,130,144,139,115,111,118,116,117,126,119,119,121,118,
 124,127,122,120,125,123,128,119,127,120,113,103,98,102,100,100,
 88,87,107,101,106,109,110,116};

static int SurroundPixelCount[] = 
{58,58,58,58,62,66,70,74,66,70,68,66,64,64,64,64,62,62,58,60,64,68,
 64,70,70,68,70,68,68,66,66,66,64,64,62,62,66,62,64,64,64,64,62,68,
 64,60,62,60,60,60,56,56,58,56,58,56,62,62,62,58,60,62,58,58,52,54,
 56,54,54,54,52,54};

static float TargetScoreScaleFactor[] = 
{0.008393037,0.00845662,0.008653287,0.009302283,0.008653287,
 0.008268696,0.007861084,0.007645712,0.008088942,0.008030748,
 0.0077519026,0.008268696,0.008586722,0.007698441,0.007542392,
 0.007392543,0.007065025,0.006976712,0.007248532,0.007248532,
 0.007441826,0.0073439074,0.0073439074,0.0071556023,0.007916836,
 0.008521175,0.008147985,0.008030748,0.007698441,0.00845662,
 0.00900221,0.009075398,0.009791877,0.009380453,0.009540803,
 0.008586722,0.0077519026,0.008030748,0.00970673,0.010056522,
 0.009459949,0.009623052,0.009540803,0.008859317,0.009380453,
 0.009380453,0.009225405,0.009459949,0.00900221,0.008789559,
 0.009149786,0.009302283,0.008930191,0.009075398,0.008720891,
 0.009380453,0.008789559,0.009302283,0.00987853,0.010837611,
 0.01139055,0.010943863,0.011162739,0.011162739,0.012684931,
 0.012830735,0.010432467,0.011052217,0.010530886,0.010241046,
 0.010147945,0.009623052};

static float SurroundScoreScaleFactor[] = 
{0.01724138,0.01724138,0.01724138,0.01724138,0.016129032,
 0.015151516,0.014285714,0.013513514,0.015151516,0.014285714,
 0.014705882,0.015151516,0.015625,0.015625,0.015625,0.015625,
 0.016129032,0.016129032,0.01724138,0.016666668,0.015625,
 0.014705882,0.015625,0.014285714,0.014285714,0.014705882,
 0.014285714,0.014705882,0.014705882,0.015151516,0.015151516,
 0.015151516,0.015625,0.015625,0.016129032,0.016129032,
 0.015151516,0.016129032,0.015625,0.015625,0.015625,0.015625,
 0.016129032,0.014705882,0.015625,0.016666668,0.016129032,
 0.016666668,0.016666668,0.016666668,0.017857144,0.017857144,
 0.01724138,0.017857144,0.01724138,0.017857144,0.016129032,
 0.016129032,0.016129032,0.01724138,0.016666668,0.016129032,
 0.01724138,0.01724138,0.01923077,0.018518519,0.017857144,
 0.018518519,0.018518519,0.018518519,0.01923077,0.018518519};

static int TargetScaleInt[] = 
{8393,8457,8653,9302,8653,8269,7861,7646,8089,8031,7752,8269,
 8587,7698,7542,7393,7065,6977,7249,7249,7442,7344,7344,7156,
 7917,8521,8148,8031,7698,8457,9002,9075,9792,9380,9541,8587,
 7752,8031,9707,10057,9460,9623,9541,8859,9380,9380,9225,9460,
 9002,8790,9150,9302,8930,9075,8721,9380,8790,9302,9879,10838,
 11391,10944,11163,11163,12685,12831,10432,11052,10531,10241,
 10148,9623};

static int SurroundScaleInt[] = 
{17241,17241,17241,17241,16129,15152,14286,13514,15152,14286,
 14706,15152,15625,15625,15625,15625,16129,16129,17241,16667,
 15625,14706,15625,14286,14286,14706,14286,14706,14706,15152,
 15152,15152,15625,15625,16129,16129,15152,16129,15625,15625,
 15625,15625,16129,14706,15625,16667,16129,16667,16667,16667,
 17857,17857,17241,17857,17241,17857,16129,16129,16129,17241,
 16667,16129,17241,17241,19231,18519,17857,18519,18519,18519,
 19231,18519};

static int SurroundUpperClipping = 69;
